package org.mifos.boss.webservice.model;

import java.io.Serializable;
import java.util.Locale;

import org.joda.time.DateTime;

@SuppressWarnings("PMD")
public class PersonnelNoteDto implements Serializable {

    private  DateTime commentDate;
    private  String comment;
    private  String personnelName;

    public PersonnelNoteDto(){}
    public PersonnelNoteDto(DateTime commentDate, String comment, String personnelName) {
        this.commentDate = commentDate;
        this.comment = comment;
        this.personnelName = personnelName;
    }

    public String getCommentDateFormatted() {
        return org.joda.time.format.DateTimeFormat.forPattern("dd/MM/yyyy").withLocale(Locale.getDefault()).print(this.commentDate);
    }

    public DateTime getCommentDate() {
        return this.commentDate;
    }

    public String getComment() {
        return this.comment;
    }

    public String getPersonnelName() {
        return this.personnelName;
    }
}